import request from '@/utils/request';

export async function getInspectionTaskByPage (params: any) {
    return request('/api/quality/getInspectionTaskByPage', {
    method: 'POST',
    data: params,
  });
}



export async function addInspectionTask (params: any) {
    return request('/api/quality/addInspectionTask', {
    method: 'POST',
    data: params,
  });
}

export async function updateInspectionTask (params: any) {
    return request('/api/quality/updateInspectionTask', {
    method: 'POST',
    data: params,
  });
}

export async function delInspectionTask (params: any) {
    return request('/api/quality/delInspectionTask', {
    method: 'POST',
    data: params,
  });
}


export async function exportInspectionTask(params: any) {
    return request('/api/quality/exportInspectionTask', {
    method: 'POST',
    data: params,
    responseType: 'blob',
  });
}
export default { getInspectionTaskByPage, addInspectionTask, updateInspectionTask, delInspectionTask, exportInspectionTask }
